package com.code.hfd.singleton;

/**
 * 单例模式类
 */
public class Singleton {
    private static Singleton uniqueInstance;
    private Singleton() {
    }

    public static Singleton getInstance() {
        if (null == uniqueInstance) {
            uniqueInstance = new Singleton();
        }
        return uniqueInstance;
    }

    // 思考下这个实现有什么问题？
}
